LassoScript Utility
Basics Browse Detail

[RegExp->MatchesStart]

Tag Link [RegExp->MatchesStart] Category String
Type Member Source Available Yes
Support Preferred Version 8.5
Change New Data Source Any
Output Type None Security None
Implementation Sets Lasso 8.5

Description

[RegExp->MatchesStart] checks whether the replace pattern matches the start of the input string. The tag accepts a single parameter which is the position at which to check and returns true or false. The example code will return true since the find pattern matches the character at position 2 "o" even though it does not match the remainder of the input string.

Syntax

[Var: 'myRegExp' = (RegExp: -Find='[aeiou]')]
[$myRegExp->(Input: 'fox')]
[$myRegExp->(MatchesStart: 2)]

Parameters

Optional Parameters
Position The integer position at which to attempt a match. The regular expression must match starting from this position. Defaults to the start of the input string.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Related Tags

Category Tags

Substitution
[String]
[String_CharFromName]
[String_Concatenate]
[String_EndsWith]
[String_Extract]
[String_FindPosition]
[String_FindRegExp]
[String_GetUnicodeVersion]
[String_Insert]
[String_IsAlpha]
[String_IsAlphaNumeric]
[String_IsDigit]
[String_IsHexdigit]
[String_IsLower]
[String_IsNumeric]
[String_IsPunctuation]
[String_IsSpace]
[String_IsUpper]
[String_Length]
[String_LowerCase]
[String_Remove]
[String_RemoveLeading]
[String_RemoveTrailing]
[String_Replace]
[String_ReplaceRegExp]
[String_UpperCase]
[String_ValidCharset]
Member
[String->Append]
[String->BeginsWith]
[String->CharDigitValue]
[String->CharName]
[String->CharType]
[String->Compare]
[String->CompareCodePointOrder]
[String->Contains]
[String->CountChar32]
[String->Digit]
[String->EndsWith]
[String->Equals]
[String->Find]
[String->FoldCase]
[String->Get]
[String->GetNumericValue]
[String->Integer]
[String->IsAlnum]
[String->IsAlpha]
[String->IsBase]
[String->IsCntrl]
[String->IsDigit]
[String->IsLower]
[String->IsPrint]
[String->IsSpace]
[String->IsTitle]
[String->IsUAlphabetic]
[String->IsULowerCase]
[String->IsUWhiteSpace]
[String->IsUpper]
[String->IsWhiteSpace]
[String->Lowercase]
[String->Merge]
[String->PadLeading]
[String->PadTrailing]
[String->Remove]
[String->RemoveLeading]
[String->RemoveTrailing]
[String->Replace]
[String->Reverse]
[String->Size]
[String->Split]
[String->Substring]
[String->TitleCase]
[String->ToLower]
[String->ToTitle]
[String->ToUpper]
[String->Trim]
[String->Unescape]
[String->Uppercase]
[String->WasKeyword]
[String->isUUpperCase]